﻿<%@ WebHandler Language="C#" Class="UserHandler" %>

using System;
using System.Web;
using System.Data;

public class UserHandler : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        string action = context.Request.QueryString["action"];
        switch (action)
        {
            case "setstate": SetState(context); break;
            default: break;
        }
    }

    private void SetState(HttpContext context)
    {
        string rid = context.Request.QueryString["rid"];
        (new DeviceInfoManage.BusinessLogicLayer.maintRecordInfo()).SetState(rid);
        context.Response.Write("ok");
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

}